package com.hq.zb.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.hq.zb.model.Dept;
import com.hq.zb.vo.DeptVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 部门表 Mapper 接口
 * @author huanghanrui
 * @date 2022-03-19
 */
@Mapper
public interface DeptMapper extends BaseMapper<Dept> {

    /**
     * 分页查询
     * @param page
     * @param wrapper
     * @return
     */
    List<DeptVo> listByPage(Pagination page, @Param("ew") Wrapper<DeptVo> wrapper);
}
